Tom,
Not a biggie, but this does not work correctly:
DoSomething(chan[3].Dest - ((backoff * ((dist > 0.0) ? 1.0 : -1.0)) * stepsperinch));
The chan[3].Dest term is ignored, and the value passed is only what comes from the parenthesized expression. Calculating the same value into a separate variable, and passing that, works correctly.
Regards,
Ray L.
|